package com.ionehe.group.common.uaa.ex.application.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("用户日志vo")
public class UserLogVO {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键id", example = "1", dataType = "Long")
    private Long id;

    /**
     * 事件
     */
    @ApiModelProperty(value = "事件", example = "秀", dataType = "String")
    private String event;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", example = "1", dataType = "Long")
    private Long userId;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号", example = "13888888888", dataType = "account")
    private String account;

    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名", example = "秀", dataType = "String")
    private String userName;

    /**
     * ip地址
     */
    @ApiModelProperty(value = "ip地址", example = "0.0.0.0", dataType = "String")
    private String ipAddr;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2021-03-04 13:29:06", dataType = "Date")
    private Date createdAt;

    /**
     * ip信息
     */
    @ApiModelProperty(value = "ip详细信息", dataType = "IpInfoVO")
    private IpInfoVO ipInfo;
}